<template>
	<view class="main">
		<view class="center-box">
			<image src="https://wechat-pictures-1301970825.file.myqcloud.com/wxapp/newMember/img_wanchengdianyan.png"></image>
			<view class="title">兑换成功</view>
			<view class="info">总计扣减积分：{{num}}</view>
			<view class="back-button" @click="go_index()">
				<view  class="back-button-text">返回首页</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				num:0
			}
		},
		onLoad(req) {
			this.num = req.num
		},
		methods: {
			go_index() {
				uni.reLaunch({
					url:'/pages/sindex/index'
				})
			},
		}
	}
</script>

<style scoped>
.main{
	width: 100%;
	height: 100vh;
	background-color: #ffffff;
}
.center-box{
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 200rpx;
}
.center-box image {
	width: 454rpx;
	height: 290rpx;
}
.title {
	width: 550rpx;
	text-align: center;
	font-size: 40rpx;
	font-weight: bold;
	color: #5CAE77;
	margin-top: 50rpx;
}
.info {
	width: 550rpx;
	text-align: center;
	font-size: 44rpx;
	font-weight: bold;
	color: #FF9500;
	margin-top: 30rpx;
	letter-spacing: 1px;
}
.back-button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: 100rpx;
}
.back-button-text{
	width: 500rpx;
	height: 98rpx;
	background: #5CAE77;
	border-radius: 49rpx;
	line-height: 98rpx;
	margin:0 auto;
	color: #fff;
	text-align: center;
	font-size: 44rpx;
	font-weight: 500;
	color: #FFFFFF;
}
</style>
